package cn.iocoder.yudao.module.xkfz.domain.entity.rules;

import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.util.List;

@Data
@TableName("SORT_METHOD")
@KeySequence("sort_method_seq")
public class SortMethod extends TenantBaseDO {
    @TableId(value = "ID", type = IdType.INPUT)
    @Schema(description = "表id")
    private Long id;

    @TableField("INDICATOR_ID")
    @Schema(description = "指标id")
    private Long indicatorId;

    @TableField("INDICATOR_NAME")
    @Schema(description = "指标id")
    private String indicatorName;

    @TableField("SORT_STYLE")
    @Schema(description = "排序方式(倒序/升序)")
    private String sortStyle;

    @TableField("SORT_STYLE")
    @Schema(description = "参照(自身/同比/环比)")
    private String comparisonReferences;

    @TableField("KS_TYPE")
    @Schema(description = "科室类型")
    private String ksType;

    @TableField("IS_SPECIAL_VALUE")
    @Schema(description = "是否特殊类型")
    private String isSpecialValue;

    @TableField(exist = false)
    List<RatioBandInfo> ratioBandInfoList;

    /**
     * 所属年份
     */
    @TableField("PERIOD_TIME")
    @Schema(description = "所属年份")
    private String periodTime;
}
